ScxV6Objects.Count Method

Returns the number of objects in the collection.

Example:

The following example written in VB.NET lists all the objects contained in the root group, along with their position in the collection.

Dim Svr As ScxV6DbClient.ScxV6Server

Svr = New ScxV6DbClient.ScxV6Server

Svr.Connect("MAIN", "", "")

' Get the objects in the root group

Dim Objects As ScxV6DbClient.ScxV6Objects

Objects = Svr.RootObject.List("CDBObject")

Dim I As Integer

For I = 1 To Objects.Count

System.Console.WriteLine("{0} : {1}", I, Objects(I).FullName)

Next


Disclaimer

Geo SCADA Expert 2020